jade.content.lang.j
Class JCodec

java.lang.Object
  |
  +--jade.content.lang.Codec
        |
        +--jade.content.lang.j.JCodec

public class JCodec
extends Codec

Author:
Federico Bergenti - Universita` di Parma

Inner classes inherited from class jade.content.lang.Codec
Codec.CodecException
 
Field Summary
static java.lang.String NAME
           
 
Constructor Summary
JCodec()
          Constructor
 
Method Summary
 AbsContentElement decode(byte[] content)
          Decorer.
 AbsContentElement decode(Ontology ontology, byte[] content)
          Decoder.
 byte[] encode(AbsContentElement content)
          Encoder.
 byte[] encode(Ontology ontology, AbsContentElement content)
          Encoder.
 
Methods inherited from class jade.content.lang.Codec
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Constructor Detail

JCodec

public JCodec()
Constructor
Method Detail

decode

public AbsContentElement decode(byte[] content)
                         throws Codec.CodecException
Decorer.
Overrides:
decode in class Codec
Parameters:
content - the content to encode.
Returns:
decoded content.
Throws:
CodecException -  

encode

public byte[] encode(AbsContentElement content)
              throws Codec.CodecException
Encoder.
Overrides:
encode in class Codec
Parameters:
content - the content to decode.
Returns:
encoded content.
Throws:
CodecException -  

encode

public byte[] encode(Ontology ontology,
                     AbsContentElement content)
              throws Codec.CodecException
Encoder.
Overrides:
encode in class Codec
Parameters:
ontology - the ontology to use for decoding.
content - the content to encode.
Returns:
encoded content.
Throws:
CodecException -  

decode

public AbsContentElement decode(Ontology ontology,
                                byte[] content)
                         throws Codec.CodecException
Decoder.
Overrides:
decode in class Codec
Parameters:
ontology - the ontology to use for decoding.
content - the content to decode.
Returns:
decoded content.
Throws:
CodecException -